<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
    <title>上海新急便国际货物运输代理有限公司</title>
    <meta http-equiv="Content-Type" content="text/html; charset=GBK">
    <script type="text/javascript" src="script/jquery-1.6.2.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function(){
            $('#login').click(function(){
                if($('#name').val() == '' || $('#password').val() == ''){
                    alert('请填写用户名及密码!');
                    $('#name').focus();
                    return;
                }
                document.getElementById("loginForm").submit();
                $('#login').attr('disabled',true);
            });
            $(document).keydown(function(evt){
                if(evt.keyCode == 13){
                    if($('#name').val() == '' || $('#password').val() == ''){
                        alert('请填写用户名及密码!');
                        $('#name').focus();
                        return;
                    }
                    document.getElementById("loginForm").submit();
                    $('#login').attr('disabled',true);
                }
            })
        })
    </script>
</head>
<body bgcolor="#c8d3ef" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" height="100%">
    <tr>
        <td width="100%" height="100%" valign="middle" align="center">
            <table cellpadding="0" cellspacing="0" border="1" >
                <tr>
                    <td  width="671" height="104" background="resources/images/01.gif" style="border:0"></td>
                </tr>
                <tr>
                    <td width="671" height="198" background="resources/images/02.gif" align="center" style="border:0">
                        <s:form action="login" focus="name" method="post" id="loginForm">
                            <table border="0" width="50%">
                                <tr>
                                    <td >用户名：</td>
                                    <td><s:textfield id="name" name="name" size="18"/></td>
                                </tr>
                                <tr>
                                    <td>密码：</td>
                                    <td><s:password id="password" name="password" maxlength="6" size="19"/></td>
                                </tr>
                                <tr>
                                    <td></td>
                                    <td><input type="checkbox" id="remeber" name="remeber">记住我</td>
                                </tr>
                                <tr>
                                    <td colspan="2" align="center" width="220">
                                        <input type="button" id="login" name="login" value="登陆" style="height: 25px; width: 80px"/>
                                    </td>
                                </tr>
                                <tr align="middle">
                                    <td align="middle" colSpan="3">
                                        <font color="red">
                                            <s:property value="message"/>
                                        </font>
                                    </td>
                                </tr>
                            </table>
                        </s:form>
                    </td>
                </tr>
                <tr>
                    <td width="671" height="106" background="resources/images/03.gif" style="border:0"></td>
                </tr>
            </table>
        </td>
    </tr>
</table>
</body>
</html>